package org.lvxiao.example.redis.lock;

import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.PointcutAdvisor;
import org.springframework.aop.support.annotation.AnnotationMatchingPointcut;

public class DistributionSynchronizedAdvisor implements PointcutAdvisor {

	private Advice advice;
	
	@Override
	public Advice getAdvice() {
		return advice;
	}
	
	public void setAdvice(Advice advice) {
		this.advice = advice;
	}

	
	@Override
	public boolean isPerInstance() {
		return false;
	}
	@Override
	public Pointcut getPointcut() {
		return new AnnotationMatchingPointcut(null, DistributionSynchronized.class);
	}

}
